package com.lagou.demo.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient("lagou-service-code")
public interface CodeServiceI {

    @PostMapping("/code/create/{email}")
    public Boolean newCode(@PathVariable("email") String email);

    @PostMapping("/code/validate/{email}/{code}")
    public Integer validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
